<template>
  <a-dialog
    title=""
    :visible.sync="isShowDialog"
    width="25%"
    :before-close="handleClose"
    custom-class="dialog-main"
  >
    <div slot="title" class="postion">
      <i class="a-icon-warning"></i>
      <span class="download">确认删除该条记录？</span>
    </div>
    <!-- <div class="tip" :class="[message.length > 50 ? 'tip-long' : '']">
      {{ message }}
    </div> -->
    <div class="dialog-footer">
      <div style="margin-top: 7px;">
        <a-button type="primary" size="small" class="save-btn" @click="close(1)"
          >确 定</a-button
        >
        <a-button size="small" @click="close(0)">取 消</a-button>
        
      </div>
    </div>
  </a-dialog>
</template>

<script>
export default {
  name: "DialogMessage",
  props: {
    // 是否显示弹窗
    isShowDialog: {
      type: Boolean,
      default: false,
    },
    // 提示信息
    message: {
      type: String,
      default: "",
    },
    
  },
  data() {
    return {
     
    };
  },
  methods: {
    open() {},
    handleClose() {
      this.$emit("confirm", 0);
    },
    close(type) {
      this.$emit("confirm", type);
    },
  },
  created() {
   
  },
};
</script>
<style lang="scss" scoped>
::v-deep .a-dialog {
  border-radius: 6px;
  margin-top: 38vh !important;
  // height: 288px;
}
 .postion {
  color: #FAAD14;
  font-size: 24px;
  display: flex;
  align-items: center;
}
.download{
  font-size: 16px;
  font-weight: 500;
  color: rgba(0,0,0,0.88);
  line-height: 24px;
  margin-left: 10px;
}
.a-button--primary{
  background-color: #3C77FF;
  border-color: #3C77FF;
}
.a-button--text{
  color: #3C77FF;
}
.a-button:focus, .a-button:hover {
  background: #FFF;
  border-color: #3C77FF;
  color: #3C77FF;
}
::v-deep .a-dialog__body{
  padding: 0 20px 10px;
}
.tip {
  // text-align: justify;
  text-align: center;
  font-size: 16px;
  font-family: PingFangSC-Semibold, PingFang SC;
  font-weight: 600;
  color: #333333;
}

.tip-long {
  text-align: justify;
}

.dialog-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0;
  // border-top: 1px solid #f0f0f0;

  //   margin-top: -20px;
  button {
    width: 65px;
    // height: 30px;
  }
  .save-btn {
    // background-color: rgba(68, 42, 141, 1);
    // color: #ffffff;
  }
}

.dialog-main {
}
</style>
